<template>
  <button @click="handleClick">改名</button>
</template>
  
  <script>
import store from "./store";

export default {
  data() {
    return {
      name: "mikaisa",
    };
  },
  methods: {
    handleClick() {
      this.name += "1";
      store.publish(this.name);
    },
  },
};
</script>